﻿using Md.Api.Model.Manage.MdBanner.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.MdBanner;
/// <summary>
/// 通过编号删除轮播图服务
/// </summary>
public class DeleteMdBannerByIdService : ApiBase<RequestDeleteMdBannerByIdModel>
{
    /// <summary>
    /// 轮播图仓储
    /// </summary>
	public MdBannerRep mdBannerRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = mdBannerRep.DeleteMdBannerById(Parameter.Ids);

        Result.Data = res;
    }
}
